import { IFeidaoAiBrowserComponent } from "@feidao/web/interfaces";
import Line from "@feidao/widgets/fd-wh000006";

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const line = fd.data.node.querySelector<Line>('[data-feidao-id="fd-wh000006-001"]');
	const src = line.get_data_url();
	fd.data.node.querySelector<HTMLImageElement>('[data-feidao-id="img-id"]').src = src;

	fd.data.node.querySelector<HTMLAreaElement>('[data-feidao-id="fd-wh000006-003"]').innerHTML = `
const line = fd.data.node.querySelector<Line>('[data-feidao-id="fd-wh000006-001"]');
const src = line.get_data_url();
fd.data.node.querySelector<HTMLImageElement>('[data-feidao-id="img-id"]').src = src;
	`;
}
